<template>
  <div class="selectedMv">
    <div class="mvTitle">
      <p>MV精选</p>
      <!-- <button>更多MV</button> -->
    </div>
    <ul class="mvContent">
      <template v-for="item in selectedmvs">
        <li :key="item.id" @click="getDateils(item.id,item.artistId)">
          <div class="imgBox">
            <img :src="item.picUrl" />
            <div class="mack"></div>
          </div>
          <span class="icon">
            <i class="iconfont icon-bofangsanjiaoxing"></i>{{item.playCount}}
          </span>
          <p class="songName">{{item.name}}</p>
          <span class="singer">{{item.artistName}}</span>
        </li>
      </template>
    </ul>
  </div>
</template>

<script>
export default {
  components: {},
  props: ["selectedmvs"],
  data() {
    return {};
  },
  watch: {},
  computed: {},
  methods: {
    getDateils(id,artistId){
      this.$router.push({
        name:"mvdetails",
        params:{
          id:id,
          artistId:artistId
        }
      })
    }
  },
  created() {},
  mounted() {}
};
</script>
<style lang="scss" scoped>
@import "~@/assets/css/common.scss";
.selectedMv {
  padding: vw(20) vw(16);
  border-bottom: 1px solid #ccc;
  .mvTitle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    p {
      font-size: vw(18);
      font-weight: bold;
      color: #000;
    }
    button {
      width: vw(68);
      height: vw(22);
      border: 1px solid #ccc;
      border-radius: vw(20);
      font-size: vw(12);
      background: #fff;
    }
  }
  .mvContent {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    li {
      width: 48%;
      position: relative;
      padding-top: vw(10);

      .imgBox {
        width: 100%;
        height: vw(92);
        border-radius: vw(6);
        overflow: hidden;
        position: relative;
        img {
          width: 100%;
          position: absolute;
          top: 0;
          left: 0;
        }
        .mack{
            width: 100%;
            height: vw(92);
            background: rgba(0,0,0,.2);
            position: absolute;
            top: 0;
            left: 0;
        }
      }
      .icon {
        position: absolute;
        top: vw(14);
        right: vw(6);
        color: #fff;
        font-size: vw(10);
        i {
          font-size: vw(10);
        }
      }
      .songName {
        width: 100%;
        font-size: vw(14);
        color: #000;
        padding-top: vw(6);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .singer {
        width: 100%;
        font-size: vw(12);
        color: #666;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }
}
</style>